<template>
	<view>
			<view class="title">
				
				<text class="content">{{content}}</text>
				<text class="icon">*</text>
			</view>
			<view class="example" v-show="isShow">
				<view class="buts">
					下载样表
				</view>
				<view class="buts">
					查看示例
				</view>
			</view>
			<view class="reminder">
				最多上限5个文件，最大500MB/个
			</view>
			<view class="picture">
				<image src="/static/logo.png" mode="widthFix"></image>
				<view class="message">
					<view class="name">
						图片名
					</view>
					<view class="size">
						135.72KB
					</view>
				</view>
				<image src="/static/logo.png" mode="widthFix" class="icon"></image>
			</view>
			<view class="uploading">
				上传图片
			</view>
			<view class="border">
				
			</view>
	</view>
</template>

<script>
	export default {
		props:{
			content:String,
			isShow:Boolean
		},
		data() {
			return {
				
			};
		},
		onLoad(option) {
			console.log(option);
			this.content = option.text
			if(option.isShow){
				this.isShow = option.isShow
			}
		}
		
	}
</script>

<style lang="scss" scoped>
	*{
		box-sizing: border-box;
	}

	
	.title{
		margin-bottom: 8rpx;
		margin-top: 30rpx;
		.icon{
			font-weight: 400;
			font-size: 27rpx;
			color: #DC0000;
		}
		.content{
			font-weight: 400;
			font-size: 27rpx;
			color: rgba(0,0,0,0.6);
		}
	}
	.example{
		margin-bottom: 8rpx;
		display: flex;
		.buts{
			margin-right: 8rpx;
			width: 154rpx;
			height: 69rpx;
			border-radius: 8rpx 8rpx 8rpx 8rpx;
			border: 1rpx solid #2C5E9F;
			line-height: 69rpx;
			color: #2C5E9F;
			text-align: center;
		}
	}
	.reminder{
		font-weight: 400;
		font-size: 27rpx;
		color: rgba(0,0,0,0.4);
		line-height: 38rpx;
	}
	.picture{
		width: 688rpx;
		height: 92rpx;
		border-radius: 8rpx 8rpx 8rpx 8rpx;
		border: 1rpx solid #CDCDCD;
		padding: 7rpx 23rpx 7rpx 7rpx;
		display: flex;
		align-items: center;
		image{
			width: 70rpx;
		}
		.message{
			padding-left: 8rpx;
			flex: 1;
			.name{
				font-weight: 400;
				font-size: 29rpx;
				color: #1F2329;
				line-height: 38rpx;
			}
			.size{
				font-weight: 400;
				font-size: 29rpx;
				color: rgba(0,0,0,0.4);
				line-height: 38rpx;
			}
		}
		.icon{
			width: 30rpx;
		}
	}
	.uploading{
		margin-top: 8rpx;
		width: 154rpx;
		height: 69rpx;
		font-weight: 400;
		font-size: 29rpx;
		color: #FFFFFF;
		line-height: 69rpx;
		text-align: center;
		background: #2C5E9F;
		border-radius: 8rpx 8rpx 8rpx 8rpx;
	}
	.border{
		height: 30rpx;
		border-bottom: 1rpx solid #D0D3D6;
	}
</style>
